﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infraestructure.CrossCutting.Mailing
{
    public interface IEmailManager
    {


        #region Methods


        /// <summary>
        /// Send an email
        /// </summary>
        /// <param name="to">destination email address</param>
        /// <param name="from">sender email address</param>
        /// <param name="subject">title of email</param>
        /// <param name="body">body of email</param>
        /// <returns>true if email was send, otherwise false</returns>
        bool Send(string to, string from, string subject, string body);



        /// <summary>
        /// Send an email
        /// </summary>
        /// <param name="to">an string array of destination emails address</param>
        /// <param name="from">sender email address</param>
        /// <param name="subject">title of email</param>
        /// <param name="body">body of email</param>
        /// <returns>true if email was send, otherwise false</returns>
        bool Send(string[] to, string from, string subject, string body);

        
        
        /// <summary>
        /// Validate an email address
        /// </summary>
        /// <param name="email">email address to validate</param>
        /// <returns>true if email address is valid</returns>
        bool ValidateEmailAddress(string email);


        #endregion Methods


    }
}
